---
# tasks file for nginx_installation
- name: Install nginx
  apt:
    name: nginx
    state: present
    update_cache: true
  notify: Start and enabled nginx

- name: Removing default nginx config
  file:
    name: /etc/nginx/sites-enabled/default
    state: absent
